package com.lei.ssh.action;
import java.io.File;


public class DeleteFile {
	public static void main(String[] args) {
		  File fi=new File("h:\\upload\\20120514110422644.doc");
//		  System.out.println("exists: "+fi.exists());
		  if(fi.exists()){
			  fi.delete();
			  System.out.println("删除成功！");
		  }else{
			  System.out.println("文件不存在！");
		  }
		
	}

}
